package com.gcl.usercenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gcl.usercenter.model.User;
//import jakarta.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletRequest;

public interface UserService extends IService<User> {

   /**
    * @param userAccount 账户
    * @param password    密码
    * @param request     请求
    * @return 脱敏后的用户信息
    */
   User login(String userAccount,String password, HttpServletRequest request);

   /**
    * @param userAccount   账户
    * @param userPassword  密码
    * @param checkPassword 再一次输入的密码
    * @return 用户Id
    */
   long register(String userAccount, String userPassword, String checkPassword);

//   void delete();
//
//   void selectById(long id);
//
//   void userUpdate();
//
   void userInsert(User user);


   User getSafetyUser(User user);

   int uerLogout(HttpServletRequest request);

}
